package com.example.videoproject.dao;

import com.example.videoproject.pojo.Unite;
import com.example.videoproject.pojo.Unite2;
import com.example.videoproject.pojo.Videolike;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 二组
 * @since 2022-07-23
 */
public interface VideolikeDao extends BaseMapper<Videolike> {

    @Select("select lid,uid,v.vid,vtitle,vcount,vcomment,vuptime,vlabel,vurl,vlike,vcollect,vcover,vl.vdeleted from video v,videolike vl where v.vid=vl.vid and vl.vdeleted=0 and vl.uid=#{uid}")
    List<Unite2> select(Integer uid);

}
